package com.java2207.group1.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author HLJ
 * @Date 2022/7/26 07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StaffBo {

    @ExcelProperty(value = "序号")
    private Integer id;

    @ExcelProperty(value = "员工编号")
    private String empId;

    @ExcelProperty(value = "员工姓名")
    private String name;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "年龄")
    private String age;

    @ExcelProperty(value = "身份证号")
    private String id_no;

    @ExcelProperty(value = "家庭住址")
    private String address;

    @ExcelProperty(value = "入职日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;

    @ExcelProperty(value = "合同到期日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date termdate;

    @ExcelProperty(value = "部门")
    private String department;

    @ExcelProperty(value = "联系方式")
    private String tel;

    @ExcelProperty(value = "照片")
    private String pic;
}
